package com.asset.salesforce.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="converted_account")
public class ConvertedAccount implements Serializable {
	
	private Integer id;
	
	private Lead lead;
	
	private Account account;
	
	private Employee accountOwner;
	
	private String opportunityName;
	
    private String acoountName;
    
    private String leadStatus;
    
    private String subject;
    
    private Date newDate;
    
    private String comments;
    
	private String status;
	
	private String priority;
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="converted_account_id_seq")
	@SequenceGenerator(name="converted_account_id_seq",sequenceName="converted_account_id_seq",allocationSize=1)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	@OneToOne
	@JoinColumn(name="lead_id")
	public Lead getLead() {
		return lead;
	}

	public void setLead(Lead lead) {
		this.lead = lead;
	}
	@OneToOne
	@JoinColumn(name="account_id")
	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	/**
	 * @return the accountOwner
	 */
	@ManyToOne
	@JoinColumn(name="account_owner_id")
	public Employee getAccountOwner() {
		return accountOwner;
	}

	/**
	 * @param accountOwner the accountOwner to set
	 */
	public void setAccountOwner(Employee accountOwner) {
		this.accountOwner = accountOwner;
	}

	/**
	 * @return the acoount_name
	 */
	@Column(name="account_name")
	public String getAcoountName() {
		return acoountName;
	}

	/**
	 * @param acoount_name the acoount_name to set
	 */
	public void setAcoountName(String acoountName) {
		this.acoountName = acoountName;
	}

	/**
	 * @return the opportunityName
	 */
	@Column(name="opportunity_name")
	public String getOpportunityName() {
		return opportunityName;
	}

	/**
	 * @param opportunityName the opportunityName to set
	 */
	public void setOpportunityName(String opportunityName) {
		this.opportunityName = opportunityName;
	}

	/**
	 * @return the leadStatus
	 */
	
	@Column(name="converted_status")
	public String getLeadStatus() {
		return leadStatus;
	}

	/**
	 * @param leadStatus the leadStatus to set
	 */
	public void setLeadStatus(String leadStatus) {
		this.leadStatus = leadStatus;
	}

	/**
	 * @return the subject
	 */
	@Column(name="subject")
	public String getSubject() {
		return subject;
	}

	/**
	 * @param subject the subject to set
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}

	/**
	 * @return the new_date
	 */
	@Column(name= "new_date")
	public Date getNewDate() {
		return newDate;
	}

	/**
	 * @param new_date the new_date to set
	 */
	public void setNewDate(Date newDate) {
		this.newDate = newDate;
	}

	/**
	 * @return the comments
	 */
	@Column(name="comments")
	public String getComments() {
		return comments;
	}

	/**
	 * @param comments the comments to set
	 */
	public void setComments(String comments) {
		this.comments = comments;
	}

	/**
	 * @return the status
	 */
	
	@Column(name="status")
	public String getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * @return the priority
	 */
	
	@Column(name="priority")
	public String getPriority() {
		return priority;
	}

	/**
	 * @param priority the priority to set
	 */
	public void setPriority(String priority) {
		this.priority = priority;
	}
	
	 

}
